//
//  UIImageView+QLWebCache.m
//  青旅OA
//
//  Created by qlwl on 16/4/26.
//  Copyright © 2016年 qlwl. All rights reserved.
//

#import "UIImageView+QLWebCache.h"

@implementation UIImageView (QLWebCache)
- (void)QL_setImageWithURL:(NSString *)url placeholderImage:(UIImage *)placeholder
{
    //如果需要判断是否在2G/3G/4G或WiFi下载图片
    self.contentMode = UIViewContentModeScaleAspectFill;
    self.clipsToBounds = YES;
    [self sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:placeholder];
}
- (void)QL_setImageWithURL:(NSString *)url
{
    [self QL_setImageWithURL:url placeholderImage:nil];
}

@end
